﻿using System.Xml.Linq;

namespace TestExtensions
{
	public class ActionIteration : IHasStatus
	{
		#region Constructors

		public ActionIteration(XElement element)
		{
			Element = element;
			this.LoadStatus();
			if (Element.Element("Step") != null)
			{
				Step = new TestStep(Element.Element("Step"));
			}
		}

		#endregion

		#region Properties

		public string Status { get; set; }

		public XElement Element { get; private set; }

		public TestStep Step { get; private set; }

		#endregion
	}
}